﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using PPI.General;
using PPI.WebConsumer.PPI.Svc;


namespace PPI.WebConsumer
{
    public class WVendor_Visit_XMissionStructures_Image
    {
        public static DataSet GetByStructureID(int structureID)
        {
            PPI.Svc.Service1 svc = new Service1();
            ConfigReader reader = ConfigReader.GetInstance();
            return svc.DVendor_Visit_XMissionStructures_Image_GetByStructureID(structureID, reader.ConectionMode);

        }

        public static DataSet GetServer(int offset)
        {
            PPI.Svc.Service1 svc = new Service1();
            ConfigReader reader = ConfigReader.GetInstance();
            return svc.DVendor_Visit_XMissionStructures_Image_GetServerImages(offset, reader.ConectionMode);

        }

        public static Int32 Save(int imageId, int vendor_Visit_XMissionStructureFK, bool solutionAvaible, string fileName, double latitude, double altitude, double longitude, DateTime satelliteTime, int satelliteCount, double direction, int vendor_Visit_XMissionStructures_PoleID)
        {
            PPI.Svc.Service1 svc = new Service1();
            ConfigReader reader = ConfigReader.GetInstance();
            return svc.DVendor_Visit_XMissionStructures_Image_Save(imageId,vendor_Visit_XMissionStructureFK,solutionAvaible,fileName,latitude,altitude,longitude,satelliteTime,satelliteCount,direction,vendor_Visit_XMissionStructures_PoleID,reader.ConectionMode);

        }

        public static void Delete(Int32 id, string fileName)
        {
            PPI.Svc.Service1 svc = new Service1();
            ConfigReader reader = ConfigReader.GetInstance();
            svc.DVendor_Visit_XMissionStructures_Image_Delete(id,fileName,reader.ConectionMode);

        }
    }
}
